#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int input = 0;
	scanf("%d\n", &input);
	if (input == 0)
	{
		printf("%d\n",0);
	}
	else {
		printf("%d\n",1);
	}
	return 0;
}